import { Injectable, Optional } from '@angular/core';

export class SharedConfig {
    baseColor = '#00A8E8';
}

@Injectable()
export class SharedConfigService {

    private _baseColor;

    get baseColor() {
        return this._baseColor;
    }

    constructor( @Optional() config: SharedConfig) {
        if (config) {
            this._baseColor = config.baseColor;
        }
    }

}
